//#define _CRT_SECURE_NO_WARNINGS 1
//#include<iostream>
//using namespace std;
//class Complex
//{
//private:
//	int real;
//	int image;
//public:
//	Complex(int r,int i):real(r),image(i){}
//	friend ostream& operator<<(ostream& os, Complex& c);
//	friend istream& operator>>(istream& is, Complex& c);
//	void print()
//	{
//		cout << "(" << real << "," << image << "i)" << endl;
//	}
//};
//ostream& operator<<(ostream& os, Complex& c)
//{
//	os << "(" << c.real << "," << c.image << "i)" << endl;
//	return os;
//}
//istream& operator>>(istream& is, Complex& c)
//{
//	cout << "real:";
//	is >> c.real;
//	cout << "image:";
//	is >> c.image;
//	return is;
//}
//int main()
//{
//	Complex c1(10, 20);
//	cout << c1;
//	cin >> c1;
//	cout << c1;
//	return 0;
//}